#include "RiskFactory.h"

RiskFactory* RiskFactory::uniqueInstance= NULL;

RiskFactory* RiskFactory::getInstance() {

	if (uniqueInstance == NULL) {
		std::cout << "creation de la RiskFactory..." << std::endl;
		uniqueInstance = new RiskFactory;
	} else {
		std::cout << "RiskFactory déjà créé" << std::endl;
	}

	return uniqueInstance;
}

Monde* RiskFactory::creerMonde() {
	return new Monde;
}

Continent* RiskFactory::creerContinent() {
	return new Continent;
}

Territoire* RiskFactory::creerTerritoire(){
	return new Territoire;
}
Territoire* RiskFactory::creerTerritoire(string nom) {
	return new Territoire(nom);
}

Frontiere* RiskFactory::creerFrontiere(Territoire* territoire1,
		Territoire* territoire2) {
	return new Frontiere(territoire1, territoire2);
}

Joueur* RiskFactory::creerJoueur() {
	return new Joueur;
}

Combat* RiskFactory::creerCombat() {
	return new Combat;
}

